// -----------------------------------------------------------------------------
// M A R I T I M E   R E S E A R C H   I N S T I T U T E   N E T H E R L A N D S
// -----------------------------------------------------------------------------
// Copyright (C) December 14, 2009 MARIN - All rights reserved - http://www.marin.nl
// -----------------------------------------------------------------------------
// Program  :
// Module   :
// File     : MathGeometry.cpp
// -----------------------------------------------------------------------------

#include <new>

#ifndef _WINDOWS
#include "mermaid.h"
#endif
#include "MathGeometry.h"
#include "assertplus.h"

// -----------------------------------------------------------------------------
// function MathGeometry::MathGeometry
// -----------------------------------------------------------------------------
/// constructor
/** detailed description */
// -----------------------------------------------------------------------------
MathGeometry::MathGeometry(const mml::Vector3d& a_radii,
                           REAL a_pm, bool a_ellipse)
: super()
, m_radii(a_radii)
, m_pm(a_pm)
, m_ellipse(a_ellipse)
{
}

// -----------------------------------------------------------------------------
// function MathGeometry::~MathGeometry()
// -----------------------------------------------------------------------------
/// destructor
/** detailed description */
// -----------------------------------------------------------------------------
MathGeometry::~MathGeometry()
{
}


const mml::Vector3d& MathGeometry::getRadii() const
{
    return m_radii;
}

REAL MathGeometry::getMaximumMeterWaterPressure() const
{
    return m_pm;
}

bool MathGeometry::isEllipse() const
{
    return m_ellipse;
}

